// setInterval(function () {
//     var cdate = new Date();
//     var chh = cdate.getHours()*30;
//     var cmm = cdate.getMinutes()*6;
//     var css = cdate.getSeconds()*6;

//     var ss = document.getElementById('ss');
//     var mm = document.querySelector('#mm');
//     var hh = document.querySelector('#hh');
//     ss.style.transform = 'rotate(' + (css * 6) + 'deg)';
//     hh.style.transform = 'rotate(' + ((chh * 30 + cmm / 2) + (cmm * 0.5)) + 'deg)';
//     mm.style.transform = 'rotate(' + (cmm * 6) + 'deg)';
// }, 1000);;
// 时钟指针更新逻辑
setInterval(function () {
    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();

    var hourHand = document.querySelector('#hh');
    var minuteHand = document.querySelector('#mm');
    var secondHand = document.querySelector('#ss');

    var hourAngle = (hours % 12) * 30 + (minutes / 60) * 30;
    var minuteAngle = minutes * 6 + (seconds / 60) * 6;
    var secondAngle = seconds * 6;

    hourHand.style.transform = 'rotate(' + hourAngle + 'deg)';
    minuteHand.style.transform = 'rotate(' + minuteAngle + 'deg)';
    secondHand.style.transform = 'rotate(' + secondAngle + 'deg)';
}, 1000);



